<?php
class DefaultController extends AController {
	public function actionIndex() {
        if(!empty(Yii::app()->user->isAdmin)) {
            $this->redirect(array('/admin/shop/admin'));
        } else {
            $this->redirect(array('/users/login'));
        }
	}
 }
